//首页相关功能函数
function zhedie(n){

 		var headared=document.getElementById("here_area");
 		
 		headared.innerHTML="当前位置：信息管理";
 			
 			
 		
 		 var nowU=document.getElementById("u"+n);
 		 var nowH=document.getElementById("h"+n);
 		 
 		 var aa=nowU.style.display;
 		
 		 if(aa=="block"){
 		 	nowU.style.display="none";
 		 	nowH.style.background="url('./images/side_h3.gif') 0px 0px no-repeat";
 		 }else{
 		 	nowU.style.display="block";
 		 	nowH.style.background="url('./images/side_h3_on.gif') 0px 0px no-repeat";
 		 }
 		}
 		/*
 		function showExit(){
 			var ll=document.getElementById("exit_bt2");
 			ll.style.display="block";
 		
 		}
 		
 		function hideExit(){
 			var ll=document.getElementById("exit_bt2");
 			ll.style.display="none";
 		
 		}
 		*/
 		function modifyShow(){
 			var mad=document.getElementById("modifyAdminDiv");
 			
 			var fw=document.body.clientWidth;
			var fh=window.screen.height;
		
			var x=fw/2-200;
			var y=fh/2-300;
		
			mad.style.display="block";
			mad.style.top=y+"px";
			mad.style.left=x+"px";
 			

 		}
 		
 		function hidePassDiv(){
 			var mad=document.getElementById("modifyAdminDiv");
 			mad.style.display="none";
 		}
 		
 		/**
 		 * 修改密码时，输入验证
 		 */
 		function vidateTwoPassword(){
 			var oldpass=document.getElementById("oldPassword").value;
 			var pass1=document.getElementById("newPassword1").value;
 			var pass2=document.getElementById("newPassword2").value;
 			
 			var result=" ";
 			$("#errors").text(result);
 			if(oldpass==""){
 				result="请输入旧密码！";
 				$("#oldPassword").css("background","pink");
 				$("#errors").text(result);
 				return false;
 			}
 			
 			
 			if(!(pass1==pass2)){
 				result="两次密码不一致!";
 				$("#newPassword1").css("background","pink");	
 				$("#newPassword2").css("background","pink");
 				$("#errors").text(result);
 				return false;
 			}
 			if(pass1==""||pass2==""){
 				result="密码不能为空!";
 				$("#newPassword1").css("background","pink");	
 				$("#newPassword2").css("background","pink");
 				$("#errors").text(result);
 				return false;
 			}
 			if(pass1.length<6){
 				result="密码长度小于6位!";
 				$("#newPassword1").css("background","pink");	
 				$("#newPassword2").css("background","pink");
 				$("#errors").text(result);
 				return false;
 			}
 			
 			return true;
 			//还需增加大小写字母、数字、字符的判断
 			
 		}
 		
 		
 		
 		function modifyPassword(){
 			
 			if(vidateTwoPassword()){
 			
 			
 			var idN=document.form1.idNumber.value;
 			var role=document.form1.role.value;
 			var oldPassword=document.form1.oldPassword.value;
 			var nPass=document.form1.newPassword.value;
 			var data={
 				"idNumber":idN,
 				"role":role,
 				"oldPassword":oldPassword,
 				"newPassword":nPass
 			}
 		
 			$.post(globlUrl+"/index/modifyPassword",data,function(data,status){
 				
 				$("#errors").text(data.result);
 			
 			});
 			}else{
 				$("#errors").text("输入不正确！");
 			}
 			
 		}
 		
 		//
 		
 		
 		